package appapi.entity.bridge;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 车辆进出记录表(CarInoutRecord)实体类
 *
 * @author hlm
 * @since 2023-11-08 16:39:38
 */
@Data
@ApiModel
@TableName("car_inout_record")
public class CarInoutRecord implements Serializable {
    private static final long serialVersionUID = 534939684987719546L;
    /**
     * 记录ID
     */
    @TableId(value = "inout_id" , type = IdType.AUTO)
    private Long inoutId;
    /**
     * 车辆Id
     */
    @ApiModelProperty(value = "车辆Id")
    private Integer carId;
    /**
     * 闸机id
     */
    @ApiModelProperty(value = "闸机id")
    private Integer parkId;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Long createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 最后修改人
     */
    @ApiModelProperty(value = "最后修改人")
    private Long lastModifyUser;
    /**
     * 最后修改时间
     */
    @ApiModelProperty(value = "最后修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastModifyTime;
    /**
     * 入场时间
     */
    @ApiModelProperty(value = "入场时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime inoutStarttime;
    /**
     * 离场时间
     */
    @ApiModelProperty(value = "离场时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime inoutEndtime;
    /**
     * 进出状态： 0在场 1离场
     */
    @ApiModelProperty(value = "进出状态： 0在场 1离场")
    private Integer inoutStatus;

    /**
     * 进场抓拍
     */
    @ApiModelProperty(value = "进场抓拍")
    private String inoutInpic;

    /**
     * 离场抓拍
     */
    @ApiModelProperty(value = "离场抓拍")
    private String inoutOutpic;

    /**
     * 车辆编号
     */
    @ApiModelProperty(value = "车辆编号（车牌号）")
    private String carNo;

}

